<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Game_id')}:</label>
        <div class="row" data-toggle="cxselect" data-selects="game_id,gt_id,pid">
            <div class="col-xs-12 col-sm-2">
                <select class="game_id form-control" name="row[game_id]"
                        data-url="games/game_attr/getGametype?type=game" data-value="{$row.game_id}">

                </select>
            </div>
            <div class="col-xs-12 col-sm-2">
                <select class="gt_id form-control" name="row[type]"
                        data-url="games/game_attr/getGametype?type=game_type"
                        data-query-name="game_id" data-value="{$row.type}"></select>
            </div>
            <input type="hidden" class="operate" data-name="gt_id" value="="/>
            <input type="hidden" class="operate" name="row[id]" value="{$row.id}" id="id"/>
        </div>
    </div>
    <div class="form-group">

        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Value')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-value" class="form-control " rows="5" name="row[value]" cols="50">{$row.value|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attr')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-attr" class="form-control" name="row[attr]" type="text" value="{$row.attr|htmlentities}">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_search')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_search]', ['0'=>__('不搜索'), '1'=>__('搜索')],$row.is_search)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否拼接到标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_splice]', ['0'=>__('不拼接'), '1'=>__('只拼值'), '2'=>__('全拼')],$row.is_splice)}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
